import request from "@/api/myRequest.js"
// 查询活动列表
function findAllRecommends(){
	 return request({
		 url:"/lejuAdmin/homeRecommend/findAllRecommends",
		 method:"GET",
		
		 
	 })
 }
 // 修改限时活动
 function updateRecommend(data){
 	 return request({
 		 url:"/lejuAdmin/homeRecommend/updateRecommend",
 		 method:"POST",
 		data
 		 
 	 })
  }
 // 活动明细
 function homeRecommend(recommendId){
 	 return request({
 		 url:`/lejuAdmin/homeRecommend/${recommendId}`,
 		 method:"GET",
 		
 		 
 	 })
  }
 // 删除限时活动
 function delRecommend(recommendId){
 	 return request({
 		 url:`/lejuAdmin/homeRecommend/delRecommend/${recommendId}`,
 		 method:"DELETE",
 		
 		 
 	 })
  }
  // 添加限时活动
  function addRecommend(data){
  	 return request({
  		 url:"/lejuAdmin/homeRecommend/addRecommend",
  		 method:"POST",
  		data
  		 
  	 })
   }
   // 分页查询列表信息
  
   function productsByPage(start,limit,data){
   	 return request({
   		 url:`/lejuAdmin/product/productsByPage/${start}/${limit}`,
   		 method:"POST",
		 data
   		
   		 
   	 })
    }
	// 品牌列表
	function findAllBrand(){
		 return request({
			 url:"/lejuAdmin/brand/findAllBrand",
			 method:"GET",
			
			 
		 })
	 }
    export{
		findAllRecommends,
		updateRecommend,
		homeRecommend,
		delRecommend,
		addRecommend,
		productsByPage,
		findAllBrand
		
		
	}